package Jasper.entity;

/**
 * @ClassName User
 * @Author jiangjiajia
 * @JDK-Version 1.8
 * @Date 2021/5/22 10:45 am
 * @Version 1.0
 * @Description
 *
 *              实体类
 *              属性值对应数据库中的字段 以实体类对象传递给前端
 **/
public class User {
    private int id;
    private String username;
    private String password;
    private String sex;
    private String[] hobbies;
    private String hobbiesString;
    private String addrs;
    private String imgUrl;
    private int is_delete;

    public User() {
    }

    public User(int id, String username, String password, String sex, String hobbiesString, String addrs, String imgUrl, int is_delete) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.hobbiesString = hobbiesString;
        this.addrs = addrs;
        this.imgUrl = imgUrl;
        this.is_delete = is_delete;
    }
    public User(String username, String password, String sex, String hobbiesString, String addrs, String imgUrl) {
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.hobbiesString = hobbiesString;
        this.addrs = addrs;
        this.imgUrl = imgUrl;
    }
    public User(int id,String username, String password, String sex, String hobbiesString, String addrs, String imgUrl) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.sex = sex;
        this.hobbiesString = hobbiesString;
        this.addrs = addrs;
        this.imgUrl = imgUrl;
    }

    public User(String username, String password) {
        this.username = username;
        this.password = password;
    }



    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public String getHobbiesString() {
        return hobbiesString;
    }

    public void setHobbiesString(String hobbiesString) {
        this.hobbiesString = hobbiesString;
    }

    public String getAddrs() {
        return addrs;
    }

    public void setAddrs(String addrs) {
        this.addrs = addrs;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public int getIs_delete() {
        return is_delete;
    }

    public void setIs_delete(int is_delete) {
        this.is_delete = is_delete;
    }

    public String[] getHobbies() {
        return hobbies;
    }

    public void setHobbies(String[] hobbies) {
        this.hobbies = hobbies;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                ", sex='" + sex + '\'' +
                ", hobbiesString='" + hobbiesString + '\'' +
                ", addrs='" + addrs + '\'' +
                ", imgUrl='" + imgUrl + '\'' +
                ", is_delete=" + is_delete +
                '}';
    }

    
}
